package cn.dragon.eatingfish;

import javax.swing.*;

public class NPC_2 extends SeaObject implements FishScore {
    public NPC_2() {
        super(70, 55, 1, 2, 3);
    }

    @Override
    public ImageIcon getImage() {
        if (getDirection() == M_LEFT) {
            return Images.fish_2_L;
        } else {
            return Images.fish_2_R;
        }
    }


    public void goDead() {
        setState(DEAD);
        setLife(getLife() - 1);
    }

    //重写接口返回分数方法
    @Override
    public int getScore() {
        return 20;
    }
}
